Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var Montage = require("montage").Montage,
Component = require("montage/ui/component").Component,
RangeController = require("montage/core/range-controller").RangeController;
exports.SwitchPathIteration = Montage.create(Component, {
});
var Montage = require("montage").Montage,
Converter = require("montage/core/converter/converter").Converter;
exports.ItemCountConverter = Montage.create(Converter, {
convert: {
value: function(itemCount) {
return (1 === itemCount) ? "item" : "items";
}
}
});
var Montage = require("montage").Montage,
Component = require("montage/ui/component").Component,
NativeInputText = require("native/ui/input-text.reel").InputText;
exports.InputText = Montage.create(NativeInputText, {
hasTemplate: {value: true},
enterDocument: {
value: function() {
NativeInputText.enterDocument.apply(this, arguments);
this.element.classList.add("digit-InputText");
}
}
});
var Montage = require("montage").Montage,
Component = require("montage/ui/component").Component,
NativeTextarea = require("native/ui/textarea.reel").Textarea;
exports.Textarea = Montage.create(NativeTextarea, {
hasTemplate: {value: true},
enterDocument: {
value: function() {
NativeTextarea.enterDocument.apply(this, arguments);
this.element.classList.add("digit-Textarea");
}
}
});