assets/js/edge.js in edge_framework-0.6.0 vs assets/js/edge.js in edge_framework-0.6.1

- old
+ new

@@ -64,15 +64,15 @@ } } }() ); ;(function (window, document, undefined) { - 'use strict'; + "use strict"; Edge = { - name : 'Edge', - version : '1.0', + name : "Edge", + version : "1.0", libs : {}, init: function( scope, libraries, method, options, response, /* internal */ nc ) { var library_arr, args = [scope, method, options, response], @@ -85,11 +85,11 @@ // Set edge global scope this.scope = scope || this.scope; // If calling specific library - if (libraries && typeof libraries === 'string') { + if (libraries && typeof libraries === "string") { // If calling `off` if (/off/i.test(libraries) ) { return this.off(); } @@ -105,23 +105,23 @@ for (var lib in this.libs) { responses.push(this.init_lib(lib, args) ); } } // If first argument is callback, add to args - if (typeof libraries === 'function') { + if (typeof libraries === "function") { args.unshift(libraries); } return this.response_obj(responses, args); }, response_obj: function( response_arr, args ) { for (var callback in args) { - if (typeof args[callback] === 'function') { + if (typeof args[callback] === "function") { return args[callback]({ errors: response_arr.filter(function (s) { - if (typeof s === 'string') return s; + if (typeof s === "string") return s; }) }); } } console.log(response_arr); @@ -143,37 +143,37 @@ try { return fun(); } catch (e) { return this.error({ name : lib, - message : 'could not be initialized', + message : "could not be initialized", more : e.name + ' ' + e.message, }); } } return fun(); }, patch: function( lib ) { lib.outerHeight = function (el, bool) { - if (typeof bool !== 'undefined') { + if (typeof bool !== "undefined") { return el.outerHeight(bool); } return el.outerHeight(); }; lib.outerWidth = function (el) { - if (typeof bool !== 'undefined') { + if (typeof bool !== "undefined") { return el.outerWidth(bool); } return el.outerWidth(); }; }, inherit: function( scope, methods ) { - console.log('inherit'); - var methods_arr = methods.split(' '); + console.log("inherit"); + var methods_arr = methods.split(" "); for (var i = methods_arr.length - 1; i >= 0; i--) { if (this.lib_methods.hasOwnProperty(methods_arr[i]) ) { this.libs[scope.name][methods_arr[i] ] = this.lib_methods[methods_arr[i] ]; } @@ -208,15 +208,15 @@ return true; }, }, error: function( error ) { - return error.name + ' ' + error.message + '; ' + error.more; + return error.name + " " + error.message + "; " + error.more; }, off: function() { - $(this.scope).off('.edge'); - $(window).off('.edge'); + $(this.scope).off(".edge"); + $(window).off(".edge"); return true; }, }; Foundation = Edge; \ No newline at end of file