spec/dummy_app/tmp/cache/assets/test/sprockets/b8a8c2faf730407b004ec269c26473d7 in basepack-0.2.0 vs spec/dummy_app/tmp/cache/assets/test/sprockets/b8a8c2faf730407b004ec269c26473d7 in basepack-1.0.0.pre.0

- old
+ new

@@ -1,10 +1,9 @@ {I" class:ETI"ProcessedAsset;FI"logical_path;TI"basepack/forms.js;FI" pathname;TI"O/home/lukas/projects/basepack/app/assets/javascripts/basepack/forms.coffee;FI"content_type;TI"application/javascript;TI" -mtime;Tl+FˆSI" length;TiÇMI" digest;TI"%072dc2706e5960b83c6111a2fc898e7f;FI" source;TI"ÇM(function() { - var _ref, _ref1, _ref10, _ref11, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, - __hasProp = {}.hasOwnProperty, +mtime;Tl+FˆSI" length;Ti•LI" digest;TI"%ecb3babdad40438d108db60657a1ce4f;FI" source;TI"•L(function() { + var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; $.fn.findExtended = function(selector) { if (_.str.startsWith(selector, "parent=")) { return this.parents(selector.substring("parent=".length)); @@ -123,12 +122,11 @@ Basepack.Form.Plugins.ColorPicker = (function(_super) { __extends(ColorPicker, _super); function ColorPicker() { - _ref = ColorPicker.__super__.constructor.apply(this, arguments); - return _ref; + return ColorPicker.__super__.constructor.apply(this, arguments); } ColorPicker.prototype.bind = function() { return this.form.find('[data-color]').each(function() { var that; @@ -157,12 +155,11 @@ Basepack.Form.Plugins.DateTime = (function(_super) { __extends(DateTime, _super); function DateTime() { - _ref1 = DateTime.__super__.constructor.apply(this, arguments); - return _ref1; + return DateTime.__super__.constructor.apply(this, arguments); } DateTime.prototype.bind = function() { return this.form.find('[data-datetimepicker]').each(function() { return $(this).datetimepicker($(this).data('options')); @@ -175,12 +172,11 @@ Basepack.Form.Plugins.FileUpload = (function(_super) { __extends(FileUpload, _super); function FileUpload() { - _ref2 = FileUpload.__super__.constructor.apply(this, arguments); - return _ref2; + return FileUpload.__super__.constructor.apply(this, arguments); } FileUpload.prototype.bind = function() { this.form.find('[data-fileupload]').each(function() { var input; @@ -217,12 +213,11 @@ Basepack.Form.Plugins.FilteringSelect = (function(_super) { __extends(FilteringSelect, _super); function FilteringSelect() { - _ref3 = FilteringSelect.__super__.constructor.apply(this, arguments); - return _ref3; + return FilteringSelect.__super__.constructor.apply(this, arguments); } FilteringSelect.prototype.bind = function() { return this.form.find('[data-filteringselect]').each(function() { return Basepack.Form.Plugins.FilteringSelect.select2($(this), $(this).data('options')); @@ -356,12 +351,11 @@ Basepack.Form.Plugins.FilteringMultiSelect = (function(_super) { __extends(FilteringMultiSelect, _super); function FilteringMultiSelect() { - _ref4 = FilteringMultiSelect.__super__.constructor.apply(this, arguments); - return _ref4; + return FilteringMultiSelect.__super__.constructor.apply(this, arguments); } FilteringMultiSelect.prototype.bind = function() { return this.form.find('[data-filteringmultiselect]').each(function() { return $(this).select2({ @@ -376,12 +370,11 @@ Basepack.Form.Plugins.WysiwigHtml5 = (function(_super) { __extends(WysiwigHtml5, _super); function WysiwigHtml5() { - _ref5 = WysiwigHtml5.__super__.constructor.apply(this, arguments); - return _ref5; + return WysiwigHtml5.__super__.constructor.apply(this, arguments); } WysiwigHtml5.prototype.bind = function() { return this.form.find('[data-richtext=bootstrap-wysihtml5]').not('.bootstrap-wysihtml5ed').each(function() { $(this).addClass('bootstrap-wysihtml5ed'); @@ -396,12 +389,11 @@ Basepack.Form.Plugins.RemoveOnCollapse = (function(_super) { __extends(RemoveOnCollapse, _super); function RemoveOnCollapse() { - _ref6 = RemoveOnCollapse.__super__.constructor.apply(this, arguments); - return _ref6; + return RemoveOnCollapse.__super__.constructor.apply(this, arguments); } RemoveOnCollapse.priority = -1000; RemoveOnCollapse.prototype.bind = function() { @@ -434,12 +426,11 @@ Basepack.Form.Plugins.DependantFilteringSelect = (function(_super) { __extends(DependantFilteringSelect, _super); function DependantFilteringSelect() { - _ref7 = DependantFilteringSelect.__super__.constructor.apply(this, arguments); - return _ref7; + return DependantFilteringSelect.__super__.constructor.apply(this, arguments); } DependantFilteringSelect.prototype.bind = function() { return this.form.find('[data-dependant-filteringselect]').each(function() { var dependsOn, that; @@ -465,12 +456,11 @@ Basepack.Form.Plugins.HiddeningFilteringSelect = (function(_super) { __extends(HiddeningFilteringSelect, _super); function HiddeningFilteringSelect() { - _ref8 = HiddeningFilteringSelect.__super__.constructor.apply(this, arguments); - return _ref8; + return HiddeningFilteringSelect.__super__.constructor.apply(this, arguments); } HiddeningFilteringSelect.prototype.bind = function() { var plugin; plugin = this; @@ -503,29 +493,28 @@ return HiddeningFilteringSelect; })(Basepack.Form.Plugin); + /** * Dynamically show/hide fields based on other field value. * takes all elements with data-dynamic-fields and use this data attribute as an configuration: @param{data-dynamic-fields} array of actions. Each action is a hash with keys: condition - condition which should be met (Stirng: field has to equal, Array: field has to match one of item of array) field_actions - hash. Keys are other fields on which are taken action. * Exmaple: [{"condition":["aaa","hide"],"field_actions":{"www":{"visible":false}}},{"condition":"xxx","field_actions":{"www":{"visible":true}}}] - */ + */ - Basepack.Form.Plugins.DynamicFields = (function(_super) { __extends(DynamicFields, _super); function DynamicFields() { - _ref9 = DynamicFields.__super__.constructor.apply(this, arguments); - return _ref9; + return DynamicFields.__super__.constructor.apply(this, arguments); } DynamicFields.prototype.value_checker = function(field_value, value_condition) { if ((Object.prototype.toString.call(value_condition)) === '[object Array]') { return value_condition.indexOf(field_value) !== -1; @@ -586,12 +575,11 @@ Basepack.Form.Plugins.Select2 = (function(_super) { __extends(Select2, _super); function Select2() { - _ref10 = Select2.__super__.constructor.apply(this, arguments); - return _ref10; + return Select2.__super__.constructor.apply(this, arguments); } Select2.prototype.bind = function() { return this.form.find('[data-select]').each(function() { return $(this).select2($(this).data('select')); @@ -604,12 +592,11 @@ Basepack.Form.Plugins.Orderable = (function(_super) { __extends(Orderable, _super); function Orderable() { - _ref11 = Orderable.__super__.constructor.apply(this, arguments); - return _ref11; + return Orderable.__super__.constructor.apply(this, arguments); } Orderable.prototype.update_sort_order = function() { console.log('volam update_sort_order'); return this.form.find('.fields').each(function(idx, fields) { @@ -620,23 +607,24 @@ Orderable.prototype.bind = function() { var plugin; plugin = this; return this.form.find('[data-orderable]').each(function() { - var _this = this; return $(this).sortable({ handle: '.nested-form-drag', axis: "y", - stop: function() { - return plugin.update_sort_order(); - } + stop: (function(_this) { + return function() { + return plugin.update_sort_order(); + }; + })(this) }); }); }; return Orderable; })(Basepack.Form.Plugin); }).call(this); -;TI"dependency_digest;TI"%51ce442f22418f5aaae3eda1b645a4e2;FI"required_paths;T[I"O/home/lukas/projects/basepack/app/assets/javascripts/basepack/forms.coffee;FI"dependency_paths;T[{I" path;TI"O/home/lukas/projects/basepack/app/assets/javascripts/basepack/forms.coffee;FI" -mtime;TI"2014-03-07T09:50:14+01:00;TI" digest;TI"%a3f46643f9008f02f889a5f9fb463098;FI" _version;TI"%ad5851230fbdd4f8a862674697158df2;F +;TI"dependency_digest;TI"%3e31dbc3016affdb6fb5e02c9ea03005;FI"required_paths;T[I"O/home/lukas/projects/basepack/app/assets/javascripts/basepack/forms.coffee;FI"dependency_paths;T[{I" path;TI"O/home/lukas/projects/basepack/app/assets/javascripts/basepack/forms.coffee;FI" +mtime;TI"2014-03-07T09:50:14+01:00;TI" digest;TI"%dbd2b32d9ce9ded8d4be944194a9d2b2;FI" _version;TI"%1005ed9f20e25fb0a0599a7017dd0e6b;F \ No newline at end of file