This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(!Browser.ie){ | |
| Browser.Features.Touch = (function(){ | |
| try { | |
| document.createEvent('TouchEvent').initTouchEvent('touchstart'); | |
| return true; | |
| } catch (exception){} | |
| return false; | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------- | |
| var mergeOne = function(source, key, current){ | |
| if (current && typeof(current) == 'object' && current.indexOf != stringish && current.exec != regexpish && !(current.nodeName && current.nodeType) && (!current.$family || current.$family() == 'object')) { | |
| console.info(current.clone); | |
| if (current.indexOf != arrayish) { | |
| var target = source[key]; | |
| if (target && typeof(target) == 'object' && current.indexOf != stringish && target.exec != regexpish && target.indexOf != arrayish) Object.merge(source[key], current) | |
| else source[key] = Object.clone(current); | |
| } else source[key] = current.clone(); | |
| } else source[key] = current; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| findDocument: function(target) { | |
| if (target.documentElement) return target; | |
| if (target.document) return target.document; | |
| if (target.lsd) return; | |
| var body = target.ownerDocument.body; | |
| var document = (target != body) && Element.retrieve(body, 'widget'); | |
| while (!document && (target = target.parentNode)) { | |
| var widget = Element.retrieve(target, 'widget') | |
| if (widget) document = (widget instanceof LSD.Document) ? widget : widget.document; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %section.lightbox | |
| .overlay | |
| .container | |
| %a.button#closer Close |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IGC.Widget.Body.Dialog = new Class({ | |
| Includes: [ | |
| LSD.Native.Body, | |
| LSD.Trait.Fieldset | |
| ], | |
| options: { | |
| classes: Array.fast('dialog'), | |
| pseudos: Array.fast('submittable'), | |
| states: Array.fast('hidden'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getTarget: function(target, anchor) { | |
| if (!target && !(target = this.attributes.target)) return false; | |
| var parsed = this.parseTargetSelector(target); | |
| var results = []; | |
| parsed.each(function(expression) { | |
| if (!anchor) anchor = expression.anchor ? expression.anchor.call(this) : (this.document || document.body); | |
| if (expression.selector) results.push.apply(results, Slick.search(anchor, expression.selector)); | |
| else if (anchor) results.push(anchor) | |
| }, this); | |
| return results.length > 0 && results.map(function(result) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| getTarget: function(target, anchor) { | |
| if (!target && !(target = this.attributes.target)) return false; | |
| var parsed = this.parseTargetSelector(target); | |
| var results = []; | |
| parsed.each(function(expression) { | |
| if (!anchor) anchor = expression.anchor ? expression.anchor.call(this) : (this.document || document.body); | |
| if (expression.selector) results.push.apply(results, Slick.search(anchor, expression.selector)); | |
| else if (anchor) results.push(anchor) | |
| }, this); | |
| return results.length > 0 && results.map(function(result) { |
NewerOlder