diff --git a/Source/LightFace.IFrame.js b/Source/LightFace.IFrame.js index e728158..e16e2d6 100644 --- a/Source/LightFace.IFrame.js +++ b/Source/LightFace.IFrame.js @@ -9,7 +9,7 @@ license: - MIT-style license requires: - core/1.2.1: "*" + - LightFace provides: - LightFace.IFrame diff --git a/Source/LightFace.Image.js b/Source/LightFace.Image.js index 4cff398..14ff957 100644 --- a/Source/LightFace.Image.js +++ b/Source/LightFace.Image.js @@ -6,10 +6,10 @@ authors: - David Walsh (http://davidwalsh.name) license: - - MIT-style license + - MIT-style license requires: - core/1.2.1: "*" + - LightFace provides: - LightFace.Image @@ -30,10 +30,10 @@ LightFace.Image = new Class({ _resize: function() { //get the largest possible height var maxHeight = window.getSize().y - this.options.pad; - + //get the image size var imageDimensions = document.id(this.image).retrieve("dimensions"); - + //if image is taller than window... if(imageDimensions.y > maxHeight) { this.image.height = maxHeight; @@ -43,10 +43,10 @@ LightFace.Image = new Class({ width: (imageDimensions.x * (maxHeight / imageDimensions.y)).toInt() }); } - + //get rid of styles this.messageBox.setStyles({ height: "", width: "" }); - + //position the box this._position(); }, @@ -65,8 +65,8 @@ LightFace.Image = new Class({ events: { load: function() { (function() { - var setSize = function() { - this.image.inject(this.messageBox).store("dimensions", this.image.getSize()); + var setSize = function() { + this.image.inject(this.messageBox).store("dimensions", this.image.getSize()); }.bind(this); setSize(); this._resize(); @@ -91,7 +91,7 @@ LightFace.Image = new Class({ } }); this.image.src = url || this.options.url; - if(title && this.title) this.title.set("html", title); + if(title && this.title) this.title.set("html", title); return this; } }); \ No newline at end of file diff --git a/Source/LightFace.Request.js b/Source/LightFace.Request.js index 0d4aead..f798efe 100644 --- a/Source/LightFace.Request.js +++ b/Source/LightFace.Request.js @@ -9,7 +9,7 @@ license: - MIT-style license requires: - core/1.2.1: "*" + - LightFace provides: - LightFace.Request @@ -49,10 +49,10 @@ LightFace.Request = new Class({ this.fireEvent("complete"); }.bind(this) },this.options.request); - + if(title && this.title) this.title.set("html", title); if(!props.url) props.url = url || this.options.url; - + new Request(props).send(); return this; } diff --git a/Source/LightFace.Static.js b/Source/LightFace.Static.js index d35ea39..1ce84ca 100644 --- a/Source/LightFace.Static.js +++ b/Source/LightFace.Static.js @@ -9,7 +9,7 @@ license: - MIT-style license requires: - core/1.2.1: '*' + - LightFace provides: - LightFace.Static diff --git a/package.yml b/package.yml index 8d8bafd..a9c5bc5 100644 --- a/package.yml +++ b/package.yml @@ -4,4 +4,10 @@ current: 0.97 category: Interface tags: [lightbox,facebook,overlay,modal] docs: http://davidwalsh.name/js/lightface -demo: http://davidwalsh.name/dw-content/lightface.php \ No newline at end of file +demo: http://davidwalsh.name/dw-content/lightface.php +sources: + - "Source/LightFace.js" + - "Source/LightFace.Image.js" + - "Source/LightFace.IFrame.js" + - "Source/LightFace.Static.js" + - "Source/LightFace.Request.js"